<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :sm="24" :lg="12" style="padding-left: 20px">
        <h2>Yi-Vite后台管理框架</h2>
        <p>

        </p>
        <p>
          <b>当前版本:</b> <span>v{{ version }}</span>
        </p>
        <p>
          <el-tag type="danger">&yen;免费开源</el-tag>
        </p>
        <p>
          <el-button
            type="primary"
            icon="Cloudy"
            plain
            @click="goTarget('https://gitee.com/HeartProject/ruoyi-vite')"
            >访问码云</el-button
          >
        </p>
      </el-col>

      <el-col :sm="24" :lg="12" style="padding-left: 50px">
        <el-row>
          <el-col :span="12">
            <h2>技术选型</h2>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <h4>后端技术</h4>
            <ul>
              <li>SpringBoot3</li>
              <li>JDK21</li>
              <li>Spring Security</li>
              <li>JWT</li>
              <li>MyBatisPlus</li>
              <li>EasyExcel</li>
              <li>EasyCaptcha</li>
              <li>sse</li>
              <li>knife4j</li>
              <li>X-FileStorage</li>
              <li>xxl-job</li>
              <li>...</li>
            </ul>
          </el-col>
          <el-col :span="6">
            <h4>前端技术</h4>
            <ul>
              <li>Vue</li>
              <li>Vite</li>
              <li>ElementPlus</li>
              <li>Axios</li>
              <li>Sass</li>
              <li>webpack</li>
              <li>ts</li>
              <li>quill</li>
              <li>echarts</li>
              <li>...</li>
            </ul>
          </el-col>
        </el-row>
      </el-col>
    </el-row>
    <el-divider />

    <el-col :xs="24" :sm="24" :md="12" :lg="8">
      <el-card class="update-log">
        <div slot="header" class="clearfix">
          <span>更新日志</span>
        </div>
        <el-collapse accordion>
          <el-collapse-item title="v2.0.2 - 2025-08-22">
            <ol>
              <li>netty-socket.io调整为使用sse</li>
            </ol>
          </el-collapse-item>
          <el-collapse-item title="v2.0.1 - 2025-08-10">
            <ol>
              <li>基础版本发布</li>
            </ol>
          </el-collapse-item>
        </el-collapse>
      </el-card>
    </el-col>
  </div>
</template>

<script setup name="Index">
const version = ref('2.0.2-V')

function goTarget(url) {
  window.open(url, '__blank')
}
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

